package com.d0305.Z05;

public class Racing {
    int topSpeed=40;
    public void upgradeEngine(RepairFactory h) {

        h.upgradeEngine(topSpeed);
    }

    public static void main(String[] args) {
        Racing r=new Racing();
        RepairFactory h =new RepairFactory();
        r.upgradeEngine(h);

    }
}
